<?
	include_once('header.php');
	include_once('sidebar.php');
?>
		<div id="main">
			<? echo drizzo_check_for_update(); echo drizzo_update_this_install(); ?>

			<h2>Welcome to Drizzo</h2>
			<br class="clear" />
			<div id="left">
				<h3>Hey there <? echo drizzo_user_info(session_user_id, 'nice_name');?>. (<small><a href="/drizzo/users.php?edit=<? echo session_user_id; ?>" title="Edit Your Profile">Edit Your Profile</a></small>)</h3>
<?
	if(drizzo_base_tips()) {
		echo drizzo_base_tips();
	}
?>
<?
	if(drizzo_comments_count('moderated') > 0) {
?>
				<h3>Comments</h3>
				<p>There <? if(drizzo_comments_count('moderated') == 1) { echo "is"; } else { echo "are"; } ?> <a href="comments.php?action=view_moderated"><? echo drizzo_comments_count('moderated'); ?> comment<? if(drizzo_comments_count('moderated') > 1) { echo "s"; } ?></a> waiting to be moderated.</p>
<?		
	}
?>
			</div>
			<div id="right">

				<h3>Latest Activity</h3>

				<? echo drizzo_latest_activity(); ?>

			</div>
			
			<br class="clear" />

		</div>

		<div id="front_page">
			
			<div>

				<h3>Drizzo News</h3>
				
				<? echo drizzo_feed_list('http://drizzoblog.com/feed',5,'drizzo_news',false); ?>

			</div>

			<div>

				<h3>Incoming Links <small><a href="http://technorati.com" title="Technorati">Via Technorati</a></small></h3>
				
				<? echo drizzo_feed_list('http://feeds.technorati.com/search/' . $_SERVER['SERVER_NAME'],5,'incoming_links',false); ?>

			</div>

			<div>

				<h3>Recent Comments</h3>
				
				<? echo drizzo_recent_comments(5, 'ul', '<li class="recent_comments">','</li>'); ?>

			</div>
			
			<? drizzo_base_plugins(); ?>
			
			<br class="clear" />
			
		</div>
		
<?
	include_once('footer.php');
?>
